package com.java.zhuiyun.api.series_course.model;

import com.java.zhuiyun.api.back_course.model.BackCourseModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName DictSeriesModel
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/8/31 10:31
 **/
@Data
public class DictSeriesModel {
    private Integer id;
    private String dictName;
    private Integer prentId;
    private List<BackCourseModel> seriesCourseModels;
    private List<DictSeriesModel> children;

    public DictSeriesModel() {
        this.children = new ArrayList<>();
        this.seriesCourseModels=new ArrayList<>();
    }

    public List<DictSeriesModel> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList<>();
        }
        return this.children;
    }

    public List<BackCourseModel> getSeriesCourseModels() {
        if (this.seriesCourseModels == null) {
            this.seriesCourseModels = new ArrayList<>();
        }
        return this.seriesCourseModels;
    }
}
